<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Plate/index')}">列表</a></li>
        <li class="active"><a>编辑</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Plate/editPost')}">
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 类型:</label>
            <div class="col-md-6 col-sm-10">
                <select name="type" class="form-control">
                    <option value="">请选择</option>
                    <option
                    <if isset($vo.type)&&$vo.type=='1'>selected</if>
                    value="1">成品库</option>
                    <option
                    <if isset($vo.type)&&$vo.type=='2'>selected</if>
                    value="2">实验库</option>
                    <option
                    <if isset($vo.type)&&$vo.type=='3'>selected</if>
                    value="3">废料库</option>
                    <option
                    <if isset($vo.type)&&$vo.type=='4'>selected</if>
                    value="4">半成品库</option>
                    <option
                    <if isset($vo.type)&&$vo.type=='5'>selected</if>
                    value="5">头尾库</option>
                    <option
                    <if isset($vo.type)&&$vo.type=='6'>selected</if>
                    value="6">封闭库</option>
                    <option
                    <if isset($vo.type)&&$vo.type=='7'>selected</if>
                    value="7">原材料库</option>
                    <option
                    <if isset($vo.type)&&$vo.type=='8'>selected</if>
                    value="8">委外库</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 归属类型:</label>
            <div class="col-md-6 col-sm-10">
                <select name="companytype" class="form-control">
                    <volist name="companytypea_arr" id="ao">
                        <option
                        <if isset($vo.companytype)&&$vo.companytype==$ao.id>selected</if>
                        value="{$ao.id}">{$ao.name}</option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 捆包号:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" readonly name="name" value="{$vo.name|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 成品牌号:</label>
            <div class="col-md-6 col-sm-10">
                <select name="grade_id" class="form-control">
                    <option value="">请选择</option>
                    <volist name="grade_id_arr" id="ao">
                        <option
                        <if isset($vo.grade_id)&&$vo.grade_id==$ao.id>selected</if>
                        value="{$ao.id}">{$ao.g_name}</option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 原料钢种:</label>
            <div class="col-md-6 col-sm-10">
                <select name="steel_id" class="form-control">
                    <option value="">请选择</option>
                    <volist name="steel_id_arr" id="ao">
                        <option
                        <if isset($vo.steel_id)&&$vo.steel_id==$ao.id>selected</if>
                        value="{$ao.id}">{$ao.name}</option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 钢卷号:</label>
            <div class="col-md-6 col-sm-10">
                <select name="coil_id" class="form-control">
                    <option value="">请选择</option>
                    <volist name="coil_id_arr" id="ao">
                        <option
                        <if isset($vo.coil_id)&&$vo.coil_id==$ao.id>selected</if>
                        value="{$ao.id}">{$ao.coilno}</option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 厚:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="d" value="{$vo.d|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 宽:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="w" value="{$vo.w|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 长:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="h" value="{$vo.h|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 重量(吨):</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="weight" value="{$vo.weight|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 合同号:</label>
            <div class="col-md-6 col-sm-10">
                <select name="ht_id" class="form-control">
                    <option value="">请选择</option>
                    <volist name="ht_id_arr" id="ao">
                        <option
                        <if isset($vo.ht_id)&&$vo.ht_id==$ao.id>selected</if>
                        value="{$ao.id}">{$ao.ht_number}</option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 张数:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="sheets" value="{$vo.sheets|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 库位:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="kuwei" value="{$vo.kuwei|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 客户名称:</label>
            <div class="col-md-6 col-sm-10">
                <select name="company_id[]" class="form-control selectpicker"  multiple id="company_id">
                    <option value="">请选择</option>
                    <volist name="company_id_arr" id="ao">
                        <option
                        <if isset($vo.company_id)&&$vo.company_id==$ao.id>selected</if>
                        value="{$ao.id}">{$ao.name}</option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 备注:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="remark" value="{$vo.remark|default=''}">
            </div>
        </div>
        <div class="col-sm-offset-2 col-sm-10">
            <input type="hidden" name="id" value="{$vo.id}"/>
            <button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
            <a class="btn btn-default" href="{:url('Plate/index')}">返回</a>
        </div>
    </form>

</div>
<script src="/static/js/admin.js"></script>
<script src="/static/js/layer/layer.js"></script>
<script>
    {
        $jsTpl
    }
</script>
</body>
</html>